package com.fenghongzhang.a18103.component.moudle;

import com.fenghongzhang.a18103.mvp.contract.FoodContract;
import com.fenghongzhang.a18103.mvp.model.FoodModel;

import dagger.Module;
import dagger.Provides;

@Module
public class FoodMoudle {

    private FoodContract.IFoodView foodView;

    public FoodMoudle(FoodContract.IFoodView foodView) {
        this.foodView = foodView;
    }

    @Provides
    public FoodContract.IFoodModel getFoodModel() {
        return new FoodModel();
    }


    @Provides
    public FoodContract.IFoodView getFoodView() {
        return foodView;
    }

}
